package service.impl;

import dao.FileDao;
import dao.impl.FileDaoImpl;
import domian.File;
import service.FileService;

public class FileServiceImpl implements FileService {
    FileDao fileDao = new FileDaoImpl();

    @Override
    public boolean updateFile(File file) {
        return fileDao.updateFile(file);
    }

    @Override
    public boolean addFile(File file) {
        return fileDao.addFile(file);
    }

    @Override
    public File findFileById(Integer id) {
        return fileDao.findFileById(id);
    }
}
